package com.lookme.lmtool.cracker.spliter;

import com.lookme.lmtool.cracker.AbstractCracker;
import com.lookme.lmtool.cracker.annotation.FilterAnnotation;
import com.lookme.lmtool.cracker.annotation.SpliterAnnotation;
import lombok.Getter;
import lombok.Setter;

import java.util.LinkedHashMap;

public abstract class AbstractSpliter extends AbstractCracker implements ISpliter{

    @Override
    public String getName() {
        SpliterAnnotation filterAnnotation=this.getClass().getAnnotation(SpliterAnnotation.class);
        if(filterAnnotation!=null){
            return filterAnnotation.value();
        }
        return null;
    }



    @Override
    public String toString(){
        return getName();
    }
}
